package com.epam.submenu;

import java.util.ArrayList;
import java.util.List;

import com.epam.menu.Menu;
import com.epam.menu.MenuItem;
import com.epam.submenu.submenu1.*;

public class Gems extends MenuItem {
	private final Menu subMenu;
	
	public Gems() {
		super("Gems","1");
		List<MenuItem> items = new ArrayList<MenuItem>();
		items.add(new Order1());
		items.add(new Order2());
		items.add(new Order3());
		items.add(new Order4());
		items.add(new GoBack1());
		subMenu = new Menu(items);
	}

	@Override
	public boolean execute() {
		System.out.println("Gems comand");
		subMenu.run();
		return true;
	}

}
